package com.selftest.filters;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.GenericFilterBean;

import javax.servlet.*;
import java.io.IOException;

//@Component
public class TestGenericFilter extends GenericFilter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("GenericFilter过滤");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {
        super.destroy();
    }


}
